package com.aspose.cells;

class zbhf extends zcj {
   zbhf(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
      switch(this.e.a) {
      case 1:
      default:
         break;
      case 2:
         com.aspose.cells.b.a.b.a.zi var5 = new com.aspose.cells.b.a.b.a.zi(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, this.e.g());
         this.a.b(var5);
         break;
      case 3:
         com.aspose.cells.b.a.b.a.zi var6 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, -1.0F, this.e.f(), this.e.g());
         this.a.b(var6);
         break;
      case 4:
         com.aspose.cells.b.a.b.a.zi var7 = new com.aspose.cells.b.a.b.a.zi(-1.0F, 0.0F, 0.0F, 1.0F, this.e.f(), 0.0F);
         this.a.b(var7);
      }

   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      float var11 = 0.0F;
      float var12 = 0.0F;
      float var13 = 0.0F;
      if (this.e.l.a.size() == 3) {
         var6 = var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var7 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var8 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         var9 = var5 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var10 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         var12 = -var4 - var6 + 2.0F * var7;
         var13 = -var5 - var9 + 2.0F * var10;
      } else if (this.e.l.a.size() == 2) {
         var6 = var4 * 9146.0F / 21600.0F;
         var7 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var8 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var9 = var5 * 9146.0F / 21600.0F;
         var10 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var11 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var12 = -var4 - var6 + 2.0F * var7;
         var13 = -var5 - var9 + 2.0F * var10;
      } else if (this.e.l.a.size() == 1) {
         var6 = var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var7 = var4 * 18486.0F / 21600.0F;
         var8 = var4 * 6314.0F / 21600.0F;
         var9 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         var10 = var5 * 18486.0F / 21600.0F;
         var11 = var5 * 6314.0F / 21600.0F;
         var12 = -var4 - var6 + 2.0F * var7;
         var13 = -var5 - var9 + 2.0F * var10;
      } else {
         var6 = var4 * 9146.0F / 21600.0F;
         var7 = var4 * 18486.0F / 21600.0F;
         var8 = var4 * 6314.0F / 21600.0F;
         var9 = var5 * 9146.0F / 21600.0F;
         var10 = var5 * 18486.0F / 21600.0F;
         var11 = var5 * 6314.0F / 21600.0F;
         var12 = -var4 - var6 + 2.0F * var7;
         var13 = -var5 - var9 + 2.0F * var10;
      }

      com.aspose.cells.b.a.b.a.ze var14 = new com.aspose.cells.b.a.b.a.ze();
      float var10000 = var7 - var6 / 2.0F;
      com.aspose.cells.b.a.b.zo[] var16 = new com.aspose.cells.b.a.b.zo[]{new com.aspose.cells.b.a.b.zo(var2, var3 + (var5 - var9) / 2.0F + var9), new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var9), new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + (var5 - var10) + var9), new com.aspose.cells.b.a.b.zo(var2 + var6 + (var4 - var7), var3 + (var5 - var10) + var9), new com.aspose.cells.b.a.b.zo(var2 + var6 + (var4 - var7), var3 + var11), new com.aspose.cells.b.a.b.zo(var2 + var6, var3 + var11), new com.aspose.cells.b.a.b.zo(var2 + var6 + (var4 - var6) / 2.0F, var3), new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var11), new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var11), new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var10), new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var10), new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5)};
      var14.b(var16);
      return var14;
   }
}
